# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-librelingo-types
pkgver=3.3.0
pkgrel=3
pkgdesc="Data types to be used in Python packages for LibreLingo"
url="https://github.com/LibreLingo/LibreLingo"
arch="noarch"
license="AGPL-3.0-only"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://pypi.python.org/packages/source/l/librelingo_types/librelingo_types-$pkgver.tar.gz"
options="!check" # No tests in the PyPi package
builddir="$srcdir/librelingo_types-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
eb817d541d6d3e0f1f848f9ffa42977443c7c732423b4c0a1f2ab44a63bb8b8188179cd20936418a5b02db56e8b2c1188f07e56ffbbc96bbf9c98ab4106571e1  librelingo_types-3.3.0.tar.gz
"
